package com.ktgj.other.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.other.mapper.RcOrderPaymentrecordMapper;
import com.ktgj.other.domain.RcOrderPaymentrecord;
import com.ktgj.other.service.IRcOrderPaymentrecordService;

/**
 * 专车订单支付信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-27
 */
@Service
public class RcOrderPaymentrecordServiceImpl implements IRcOrderPaymentrecordService 
{
    @Autowired
    private RcOrderPaymentrecordMapper rcOrderPaymentrecordMapper;

    /**
     * 查询专车订单支付信息
     * 
     * @param paymentrecordsid 专车订单支付信息ID
     * @return 专车订单支付信息
     */
    @Override
    public RcOrderPaymentrecord selectRcOrderPaymentrecordById(Long paymentrecordsid)
    {
        return rcOrderPaymentrecordMapper.selectRcOrderPaymentrecordById(paymentrecordsid);
    }

    /**
     * 查询专车订单支付信息
     *
     * @param orderid 专车订单ID
     * @return 专车订单支付信息
     */
    @Override
    public RcOrderPaymentrecord selectRcOrderPaymentrecordByOrderId(Long orderid) {
        return rcOrderPaymentrecordMapper.selectRcOrderPaymentrecordByOrderId(orderid);
    }

    /**
     * 查询专车订单支付信息列表
     * 
     * @param rcOrderPaymentrecord 专车订单支付信息
     * @return 专车订单支付信息
     */
    @Override
    public List<RcOrderPaymentrecord> selectRcOrderPaymentrecordList(RcOrderPaymentrecord rcOrderPaymentrecord)
    {
        return rcOrderPaymentrecordMapper.selectRcOrderPaymentrecordList(rcOrderPaymentrecord);
    }

    /**
     * 新增专车订单支付信息
     * 
     * @param rcOrderPaymentrecord 专车订单支付信息
     * @return 结果
     */
    @Override
    public int insertRcOrderPaymentrecord(RcOrderPaymentrecord rcOrderPaymentrecord)
    {
        return rcOrderPaymentrecordMapper.insertRcOrderPaymentrecord(rcOrderPaymentrecord);
    }

    /**
     * 修改专车订单支付信息
     * 
     * @param rcOrderPaymentrecord 专车订单支付信息
     * @return 结果
     */
    @Override
    public int updateRcOrderPaymentrecord(RcOrderPaymentrecord rcOrderPaymentrecord)
    {
        return rcOrderPaymentrecordMapper.updateRcOrderPaymentrecord(rcOrderPaymentrecord);
    }

    /**
     * 批量删除专车订单支付信息
     * 
     * @param paymentrecordsids 需要删除的专车订单支付信息ID
     * @return 结果
     */
    @Override
    public int deleteRcOrderPaymentrecordByIds(Long[] paymentrecordsids)
    {
        return rcOrderPaymentrecordMapper.deleteRcOrderPaymentrecordByIds(paymentrecordsids);
    }

    /**
     * 删除专车订单支付信息信息
     * 
     * @param paymentrecordsid 专车订单支付信息ID
     * @return 结果
     */
    @Override
    public int deleteRcOrderPaymentrecordById(Long paymentrecordsid)
    {
        return rcOrderPaymentrecordMapper.deleteRcOrderPaymentrecordById(paymentrecordsid);
    }
}
